type point = { x: number, y: number, z?: number }


interface point2 {
    x: number; y: number; z?: number
}


function print(point: point2) {
    console.log(point.x);
    console.log(point.y);
    console.log(point.z);
}

print({
    x: 1,
    y: 2,
    z: 3
})


export { }